package com.ease.common.exception;

public class AssertionException extends RuntimeException {

	/**
	 * 
	 */
	private static final long serialVersionUID = 3276961750938427958L;

	public static final int MessageType_Information = 1;
	public static final int MessageType_Warning = 2;
	public static final int MessageType_Error = 3;

	private int messageType = MessageType_Error;

	public AssertionException() {
	}

	public AssertionException(String s) {
		super(s);
	}

	public AssertionException(String s, int messageType) {
		super(s);
		this.messageType = messageType;
	}

	public AssertionException(String s, Throwable throwable) {
		super(s, throwable);
	}

	public AssertionException(String s, Throwable throwable, int messageType) {
		super(s, throwable);
		this.messageType = messageType;
	}

	public AssertionException(Throwable throwable) {
		super(throwable);
	}

	public AssertionException(Throwable throwable, int messageType) {
		super(throwable);
		this.messageType = messageType;
	}

	public int getMessageType() {
		return messageType;
	}
}
